"""
本体中的owl class
@Time: 2021/2/17 23:52
@Author:
@File: ontologies.py
"""
from pyfuseki.ontology_mapper import rdf_prefix, BaseRdfPrefixEnum
from rdflib import Namespace

from config import fuseki_conf


COMMON_PREFIX = fuseki_conf.COMMON_PREFIX


@rdf_prefix
class RdfPrefix(BaseRdfPrefixEnum):
    FacultyInfoTable = Namespace(COMMON_PREFIX + 'FacultyInfoTable/')  # 故障信息表
    FacultyDescription = Namespace(COMMON_PREFIX + 'FacultyDescription/')  # 故障描述
    Equipment = Namespace(COMMON_PREFIX + 'Equipment/')  # 设备
    EquipmentFunction = Namespace(COMMON_PREFIX + 'EquipmentFunction/')  # 设备功能
    Program = Namespace(COMMON_PREFIX + 'Program/')  # 程序
    Phenomenon = Namespace(COMMON_PREFIX + 'Phenomenon/')  # 故障现象


